package com.weixin.thread;

/**
 * @ClassName Thread01
 * @Description 继承Thread
 * @date 2022/2/22 13:24
 * @author: wx
 * @Version 1.0
 */
public class Thread01 extends Thread {

    @Override
    public void run() {
        System.out.println(Thread01.class.getName() + "继承方式创建线程");
        setPriority(MAX_PRIORITY);
        for (int i = 0; i < 4; i++) {
            System.out.println(i + getPriority() + getName() + "---form-Thread01");
        }
    }
}
